package com.gasstion.service.impl;


import com.gasstion.dao.TankDao;
import com.gasstion.dao.TankMainDao;
import com.gasstion.dao.UserinfoDao;
import com.gasstion.entity.Tank;
import com.gasstion.entity.TankMain;
import com.gasstion.entity.Userinfo;
import com.gasstion.service.TankService;
import com.gasstion.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TankServiceImpl implements TankService {
    @Autowired
    private TankMainDao tankMainDao;

    @Override
    public List<TankMain> getAll() {
        return null;
    }

    @Override
    public List<TankMain> findAll(String tankName, int offset, int limit) {
        return tankMainDao.querySearch(tankName,offset,limit);
    }

    @Override
    public long findTotalCount(String tankName) {
        return tankMainDao.getTotalCount(tankName) ;
    }
}
